from multiprocessing import Process
import time


class MyNewProcess(Process):
    def run(self):
        while True:
            print("----1----")
            time.sleep(1)


if __name__ == '__main__':
    p = MyNewProcess()
    p.start()

# TODO 结果和 09_Process创建进程 差不多  不是视频的结果
while True:
    print("----main----")
    time.sleep(1)
